package com.acoreful.bootsample.event.core.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

import com.acoreful.bootsample.event.core.MsgEvent;

@Component
public class MsgEventAnnotationListener {
	private Logger logger=LoggerFactory.getLogger(getClass());
	@EventListener
	public void handleMsg(MsgEvent msgEvent) {
		logger.info("**************************{}",msgEvent);
	}
}
